名称
gdcloud backup repositories create - 创建备份仓库。
摘要
gdcloud backup repositories create NAME [flags]
示例
To create a backup repository "backup-repository-name" in a zone "us-east-1", run:
gdcloud backup repositories create backup-repository-name --zone=us-east-1 --project=project --s3-bucket-name=sample --s3-force-path=false --import-policy=ReadWrite
必需标志
--import-policy string Policy that determines whether this backup repository is read-only or read-write.
--project string Project that determines which project the associated s3 bucket was created.
--s3-bucket-name string Fully qualified name of the bucket.
--s3-force-path Set to force path style on S3 bucket name.
可选标志
--secret-reference-name string Name referencing the secret that contains access credentials for the endpoint.
--secret-reference-namespace string Unique name referencing the secret that contains access credentials for the endpoint.
--zone string Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.
GDCLOUD 全局标志
以下标志适用于所有命令:--configuration、--format、--help、--project、--quiet。
如需了解详情,请参阅 gdcloud CLI 参考概览页面。