Stay organized with collections Save and categorize content based on your preferences.
gcloud beta container backup-restore backups create
(BACKUP
: --backup-plan
=BACKUP_PLAN
--location
=LOCATION
) [--delete-lock-days
=DELETE_LOCK_DAYS
] [--description
=DESCRIPTION
] [--labels
=[KEY
=VALUE
,…]] [--retain-days
=RETAIN_DAYS
] [--async
| --wait-for-completion
] [GCLOUD_WIDE_FLAG …
]
(BETA)
Creates a Backup for GKE backup.
my-backup
in project my-project
in location us-central1
under backup plan my-backup-plan
, run:
gcloud beta container backup-restore backups create my-backup --project=my-project --location=us-central1 --backup-plan=my-backup-plan
To create a backup
in project my-backup
in location my-project
under backup plan us-central1
and not wait for the resulting operation to finish, run:my-backup-plan
gcloud beta container backup-restore backups create my-backup --project=my-project --location=us-central1 --backup-plan=my-backup-plan --async
To create a backup
in project my-backup
in location my-project
under backup plan us-central1
and wait for the Backupmy-backup-plan
to complete, run:
gcloud beta container backup-restore backups create my-backup --project=my-project --location=us-central1 --backup-plan=my-backup-plan --wait-for-completion
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
.This must be specified.
BACKUP
To set the name
attribute:
backup
on the command line.This positional argument must be specified if any of the other arguments in this group are specified.
--backup-plan
=BACKUP_PLAN
To set the backup-plan
attribute:
backup
on the command line with a fully specified name;--backup-plan
on the command line;gkebackup/backup_plan
.--location
=LOCATION
To set the location
attribute:
backup
on the command line with a fully specified name;--location
on the command line;gkebackup/location
.--delete-lock-days
=DELETE_LOCK_DAYS
--description
=DESCRIPTION
--labels
=[KEY
=VALUE
,…]
Keys must start with a lowercase character and contain only hyphens (-
), underscores (_
), lowercase characters, and numbers. Values must contain only hyphens (-
), underscores (_
), lowercase characters, and numbers.
--retain-days
=RETAIN_DAYS
--async
--wait-for-completion
--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 container backup-restore backups create
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 2025-07-22 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-22 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4